home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d11 / ansipl20.arc / ANSIPLAY.DOC < prev    next >
Text File  |  1991-07-08  |  47KB  |  1,159 lines

  1.  
  2.  
  3.  
  4.  
  5.                  ANSIPLAY vs. 2.0 - Copyright 1991, J. Ibarra
  6.                            ALL RIGHTS RESERVED
  7.        
  8.                          U S E R ' S   M A N U A L
  9.  
  10.        
  11.        INDEX:                                         PAGE NO.
  12.        -------------------------------------------    --------
  13.        Copyright Notice and Regulations . . . . . . . .  2
  14.        
  15.        Introduction . . . . . . . . . . . . . . . . . .  2
  16.        
  17.        Files included with the program. . . . . . . . .  4
  18.        
  19.        Printing the manual. . . . . . . . . . . . . . .  4
  20.        
  21.        How ANSIPLAY works . . . . . . . . . . . . . . .  5
  22.        
  23.        About ANSI.SYS (and installation). . . . . . . .  5
  24.        
  25.        Editing your ANSI file . . . . . . . . . . . . .  6
  26.        
  27.        Music string syntax. . . . . . . . . . . . . . .  6
  28.        
  29.        Music string contents. . . . . . . . . . . . . .  7
  30.        
  31.        Music codes / Sound codes definition . . . . . .  7
  32.        
  33.        Using Music Codes. . . . . . . . . . . . . . . .  8
  34.        
  35.        Using Sound Codes. . . . . . . . . . . . . . . .  8
  36.        
  37.        Music string Tutorial (TUTOR.BAT). . . . . . . . 10
  38.  
  39.        Making the music strings invisible . . . . . . . 10
  40.  
  41.        Using ESC/Music Note characters during editing . 11
  42.        
  43.        Getting familiar with ANSIPLAY . . . . . . . . . 12
  44.        
  45.        ANSIPLAY command syntax (and options). . . . . . 12
  46.        
  47.        Reinitializing the display screen (ANSIPLAY.CLS) 13
  48.  
  49.        Removing music strings (MUSCSTRP.EXE). . . . . . 13
  50.  
  51.        How ANSIAUTO works (slide-show). . . . . . . . . 14
  52.        
  53.        Running ANSIAUTO . . . . . . . . . . . . . . . . 12
  54.        
  55.        Using PLAY.EXE (music string player/editor). . . 15
  56.  
  57.        Common problems. . . . . . . . . . . . . . . . . 16
  58.  
  59.        Registering ANSIPLAY . . . . . . . . . . . . . . 18
  60.        
  61.  
  62.  
  63.                                    -1-
  64.       
  65.        
  66.       
  67.  
  68.        First of all, let me get this over with...
  69.        
  70.        COPYRIGHT NOTICE
  71.        ----------------
  72.        All rights to ANSIPLAY and included files are reserved by the
  73.        author, Julie M. Ibarra, and are protected by United States
  74.        Copyright Laws.  Violators will be held accountable for their
  75.        actions in a Court of Law and may face financial penalties
  76.        and/or imprisonment.
  77.        
  78.        Users are free to use ANSIPLAY and ANSIAUTO for a trial period
  79.        of 30 days.  If after 30 days you decide to keep the program, you
  80.        must register your copy by sending the required payment to the
  81.        author.  Failure to register your copy after 30 days is in direct
  82.        violation of copyright laws.
  83.        
  84.        Any alterations to the program files or documentation may only be
  85.        made for the user's own personal usage of the program, provided
  86.        that you notify the author in writing of said alterations.
  87.        
  88.        The program and documentation may NOT be distributed in altered
  89.        form.  REGISTERED VERSIONS OR BACKUP COPIES THEREOF MAY NOT BE
  90.        DISTRIBUTED, COPIED, OR SHARED IN ANY WAY, OTHER THAN FOR
  91.        PERSONAL BACKUPS.  You may not network the program, or otherwise
  92.        use it on more than one computer.  If the program is to be used
  93.        on more than one computer a separate registration is required per
  94.        computer.
  95.        
  96.        Otherwise, non-registered versions of ANSIPLAY (and included
  97.        files) may be distributed freely in unaltered form provided that
  98.        NO CHARGE is made for the program itself (postage and disk costs
  99.        excluded).
  100.        
  101.        This product is provided "AS IS" WITHOUT WARRANTY OF ANY KIND.
  102.        The entire risk as the results and performance of the PRODUCT is
  103.        assumed BY YOU.
  104.        
  105.        In NO event shall the author, nor employees of the author be
  106.        liable for any damages whatsoever (including without limitation
  107.        damages for loss of business profits, business interuption, loss
  108.        of business information and the like) arising out of the use of
  109.        or inability to use this product even if the author has been
  110.        advised of the possibility of such damages.
  111.        
  112.        
  113.        INTRODUCTION
  114.        ------------
  115.        If you have this program, more than likely you are already
  116.        familiar with ANSI control sequences.  But just for sake of
  117.        reference, here's a few more details about what ANSI is and
  118.        how it works.
  119.  
  120.        ANSI (American National Standards Institute) control sequences
  121.        are simply sets of characters which, when put together, will
  122.        enable computer-users to have extended control over their display
  123.        screen.
  124.  
  125.  
  126.                                    -2-
  127.  
  128.  
  129.  
  130.  
  131.        This extended control is given by DOS's device driver, ANSI.SYS,
  132.        which reads these sets of characters, interprets them, and then
  133.        processes the commands by moving the cursor positions, changing
  134.        screen colors, etc.  They also will allow your monitor to display
  135.        the extended ASCII character set (Decimals 128 - 255).
  136.  
  137.        These sets of characters are referred to as Escape Command
  138.        Sequences.  In other words, a sequence of commands preceeded by
  139.        an Escape character (Decimal Character 27).
  140.  
  141.        Each computer system processes these command sequences at 
  142.        different speeds...for example, an AT will processes much
  143.        faster than an XT.
  144.        
  145.        There are several software packages which allow the user to edit
  146.        and save these command sequences into a file (called an ANSI
  147.        file) without having to know the actual command sequences.
  148.        Some of these (such as shareware's "TheDraw") will allow you to
  149.        specify the speed of which you want the ANSI file to be displayed.
  150.  
  151.        Once the ANSI.SYS device driver is installed in DOS (Disk
  152.        Operating System), these ANSI files may be displayed by simply
  153.        typing a DOS command something like:
  154.        
  155.                   TYPE FILENAME.ANS
  156.        
  157.        Installation of ANSI.SYS is discussed later in this manual.
  158.        
  159.        Until now, the ANSI files have had one drawback...they have
  160.        screen control, but no sound.
  161.        
  162.        ANSIPLAY was developed for the purpose of adding music/sound
  163.        ability to ANSI files.  ANSIPLAY is NOT intended to be an ANSI
  164.        editing program such as the well known shareware program
  165.        "TheDraw" which enables on-screen selection of colors, cursor
  166.        positions and movement, etc., but rather ANSIPLAY is intended
  167.        allow the user to use ANY ANSI file and, by adding a few extra
  168.        escape command sequences (we'll call them music codes), enable
  169.        the integration of screen display and music/sound/pauses to it.
  170.        
  171.        Once these music codes are added to the file (by use of most any
  172.        text editor), the simplest command used to display/play them
  173.        would replace the 'TYPE' command with 'ANSIPLAY', thus something
  174.        like:
  175.                   ANSIPLAY FILENAME.ANS
  176.        
  177.        Later in this manual is a more detailed breakdown of command
  178.        syntax and additional options available with ANSIPLAY.
  179.        
  180.        One thing to remember: Adding music strings to the file
  181.        is kind of like putting icing on the cake...it's the final
  182.        touch to your ANSI file.
  183.  
  184.        You can't re-bake the cake once the icing's been put on it,
  185.        and you can't reconstruct the ANSI file with an ANSI editor
  186.  
  187.  
  188.                                    -3-
  189.  
  190.  
  191.  
  192.  
  193.        (such as "The Draw") with the music strings in it.  The reason
  194.        being that the editor will try to interprete the escape
  195.        sequences containing music strings as text, therefore displaying
  196.        it to screen.
  197.  
  198.        You CAN however, remove the music strings using MUSCSTRP.EXE,
  199.        to make the file compatible for the ANSI editor again (refer to
  200.        the section on "Removing Music Strings").
  201.  
  202.        A text editor, of course will interprete ALL characters as text
  203.        so there's no problem there.
  204.  
  205.  
  206.        FILES INCLUDED
  207.        --------------
  208.        Files included with this package are as follows:
  209.        
  210.                           ---Program Files---
  211.  
  212.           ANSIPLAY.EXE - Program to read/display/play ANSI files.
  213.           ANSIAUTO.EXE - Program to automate ANSIPLAY.EXE into a
  214.                          slide-show.
  215.           PLAY    .EXE - Allows you to play a music string from the
  216.                          DOS prompt.
  217.           MUSCSTRP.EXE - Removes music strings from your ANSI files.
  218.           GO      .BAT - An Introduction to the entire program package.
  219.           TUTOR   .BAT - A brief tutorial on some of ANSIPLAY's more
  220.                          advanced features. (Read this manual first.)
  221.  
  222.                           ---Documentation---
  223.  
  224.           OVERVIEW.DOC - A quick look at most of ANSIPLAY's features.
  225.           ANSIPLAY.DOC - User's Manual (This documentation).
  226.           ANSICODE.TXT - Listing of ANSI control sequences available.
  227.           MUSICODE.TXT - Listing of Music codes available to be used
  228.                          with ANSIPLAY.EXE.  (Also see the section on
  229.                          Sound Codes).
  230.           ORDER   .FRM - Registration Form to purchase your registered   
  231.                          and most current version of ANSIPLAY.
  232.  
  233.                            ---Data Files---
  234.  
  235.           ANSIAUTO.DAT - Sample Data file used with ANSIAUTO.EXE.
  236.           INTRO   .ANS - Data file used with GO.BAT
  237.           TUTOR   .ANS - ANSI file used with TUTOR.BAT
  238.           XMASTREE.ANS - Demonstration ANSI file (using music codes)
  239.           FAUCET  .ANS - Demonstration ANSI file (using sound codes)
  240.           SEA     .ANS - Demonstration ANSI file (using music and sound codes)
  241.  
  242.        
  243.        PRINTING THE MANUAL
  244.        -------------------
  245.        If you wish to print the manual, log onto the same
  246.        drive/directory in which this file (ANSIPLAY.DOC) exists, and
  247.        type  COPY ANSIPLAY.DOC PRN   at the DOS prompt.
  248.        
  249.  
  250.  
  251.                                       -4-
  252.  
  253.  
  254.  
  255.  
  256.        All other documentation files/order form may be printed the same
  257.        way by using different filenames.
  258.        
  259.        
  260.        HOW ANSIPLAY WORKS
  261.        ------------------
  262.        When you run ANSIPLAY, you will specify the filename of the file
  263.        you want to be displayed/played.  ANSIPLAY will read the file and
  264.        display it to the screen using the ANSI.SYS device driver, while
  265.        at the same time, searching for music codes which tell ANSIPLAY
  266.        what music notes/sounds to play.
  267.        
  268.        The music codes are NOT ANSI escape command sequences, but rather
  269.        they are interpreted and processed by ANSIPLAY.
  270.  
  271.        ANSIPLAY will be just slightly slower than DOS's TYPE command
  272.        since it must search the text for each music string and process
  273.        it accordingly.  DOS's TYPE command will process the strings as
  274.        text.  The text may be made hidden (invisible) by embedding
  275.        additional escape command sequences in the ANSI file.  (Refer to
  276.        the section on "Making the music strings invisible".)
  277.  
  278.        Shareware versions will then display a short message in ANSI
  279.        to remind users that the version in not registered.  This message
  280.        is not displayed with registered versions.
  281.        
  282.        
  283.        ABOUT ANSI.SYS (DEVICE DRIVER)
  284.        ------------------------------
  285.        Many programs use ANSI control characters, but if the device
  286.        driver ANSI.SYS is not installed before comming accross them,
  287.        you'll just get a lot of funny looking characters that don't mean
  288.        much.
  289.        
  290.        The ANSI.SYS device driver is included in your own DOS files.
  291.        
  292.        If you're wondering whether or not your system has ANSI.SYS
  293.        already installed, you can type 'ANSIPLAY' at the DOS prompt. 
  294.        When the copyright message is displayed, if you see color, the
  295.        driver is installed.  If you get a menagery of strange characters
  296.        on the screen, ANSI.SYS is NOT installed.
  297.        
  298.        
  299.        HOW TO INSTALL ANSI.SYS
  300.        -----------------------
  301.        DOS's ANSI.SYS device driver only needs to be installed once. 
  302.        This is done by creating (or editing an existing file) a file
  303.        called CONFIG.SYS which must be in the root directory of the disk
  304.        from which your computer boots from.
  305.        
  306.        If you want to create a new CONFIG.SYS file, use the following
  307.        commands, BEWARE however that if the CONFIG.SYS file already
  308.        exists and you use the following commands, the existing file will
  309.        be overwritten... 
  310.        
  311.             1. At the DOS Prompt type  COPY CON C:\CONFIG.SYS (wherein
  312.                C: should be changed to the name of your bootable disk
  313.                drive)
  314.                                       -5-
  315.        
  316.  
  317.  
  318.  
  319.             2. You will not get a new DOS prompt after this command. 
  320.                Now type  DEVICE=C:\DOS\ANSI.SYS  (followed by [ENTER]),
  321.                (wherein C:\DOS should be changed to the name of the disk
  322.                drive\directory in which the file ANSI.SYS exists.)
  323.        
  324.             3. To exit the COPY CON command, type [CTRL]+[Z] and
  325.                [ENTER].  You should now be returned to the DOS prompt.  
  326.        
  327.                ANSI.SYS will now be installed automatically each time   
  328.                your computer is booted.
  329.        
  330.             4. To reboot, you can type [CTRL]+[ALT]+[DEL].  Hold down
  331.                the [CTRL] key, then hold down the [ALT] key, then hit   
  332.                the [DEL] key and let go.
  333.        
  334.        If you have an existing CONFIG.SYS file that must be edited, you
  335.        can use a word/text editor, or consult your DOS user's manual on
  336.        how to use DOS's text editor EDLIN.EXE.
  337.        
  338.        
  339.        EDITING YOUR ANSI FILE
  340.        ----------------------
  341.        If you are starting from scratch, you may want to look into an
  342.        ANSI screen editor such as the shareware program "TheDraw".
  343.        Without such a program, ANSI file creation can be tackled, but it
  344.        would be extremely tedious and time-consuming at best.
  345.        
  346.        Your DOS user's manual will explain the escape control sequences
  347.        used with ANSI.SYS.  There is also a reference listing included
  348.        in the file ANSICODE.TXT (see section on "printing the manual").
  349.        
  350.        One example would be, to set the foreground color to bright
  351.        yellow on a blue background...
  352.        
  353.                   ESC[44;1;33m
  354.        
  355.        Unless you're very familiar with these escape sequences, it can
  356.        be a bit like learning a foreign language.
  357.        
  358.        
  359.        MUSIC STRING SYNTAX
  360.        -------------------
  361.        Once your ANSI file has been created, all that's left to do to
  362.        make it musical is add a few extra escape command sequences, for
  363.        example, a music code of...
  364.  
  365.                   ESC[MF O2 CDEC CDEC EFG.... EFG....(music note)
  366.  
  367.        would play the introduction to the song "Frere Jacques".
  368.  
  369.        Below is a breakdown of how the music strings are to be used.
  370.        By using your own text editor, you can insert these codes into
  371.        any desired location in your ANSI file, then play it back using
  372.        ANSIPLAY.EXE. 
  373.  
  374.        (see section below on using ESC character during editing)
  375.        
  376.  
  377.                                       -6-
  378.  
  379.  
  380.  
  381.  
  382.        MUSIC STRING CONTENTS
  383.        ---------------------
  384.        The word "string" simply means a set of characters (including
  385.        spaces and ascii characters) strung together.
  386.        
  387.        There are 3 sections to a Music string, broken down as follows:
  388.        
  389.                   ESC[MF   CDEC CDEC EFG  (music note)
  390.                   ------   -------------  ------------
  391.                     1           2         3
  392.        
  393.        All music strings must be prefixed with ESC+"["+"MF" (or "MB") in
  394.        upper-case text, and final character must be a (music note).
  395.        
  396.        1.  Music strings are prefixed with the ESCape character followed
  397.            by a [ character (just like ansi escape control sequences),
  398.            and then followed by MF (for Music/Sound to be played in
  399.            Foreground) or MB (for Music to be played in Background).
  400.  
  401.                *Or for a shortcut you may use ESC[M which will 
  402.                 be treated as ESC[MF.
  403.        
  404.            *** Note that the ESC above actually resembles the ESCAPE
  405.            character (Decimal CHR$(27)) and not the actual letters
  406.            E S C.  Refer to the section on "Using the ESC character
  407.            during editing".
  408.        
  409.        2.  The middle part of the string can be 1 of 2 types of
  410.            commands...
  411.            
  412.                      Music Codes
  413.                      -----------
  414.                  a)  the actual <notes, octaves, etc> specification
  415.                      (for musical tunes).
  416.        
  417.                      Spaces and carraige returns (CR-LF) are ignored.
  418.                      This portion of the music string can be of any
  419.                      size length.  
  420.                                          -or-
  421.                      Sound Codes
  422.                      -----------
  423.                  b)  a <tone frequency; duration; cycles; delay; vari>
  424.                      specification (for other sound tones and
  425.                      repeated cycles of sound tones).
  426.        
  427.                      Parameters must be separated by semi-colons.
  428.        
  429.            Details on these codes and command syntax will be discussed
  430.            shortly.  There is also a reference listing of the codes in
  431.            the file MUSICODE.TXT (see section on "printing the manual").
  432.        
  433.            3.  The final(music note) (Decimal CHR$(14)) is a must.
  434.                This tells ANSIPLAY where the music string ends.  The
  435.                (music note) character can be entered on most text editing
  436.                programs by holding down the [ALT] key, then typing the
  437.                number 14...similarly to entering the ESC character.
  438.                (See "Using the ESCape character during editing")
  439.  
  440.                                       -7-
  441.  
  442.  
  443.  
  444.  
  445.                      -------------------------------
  446.                             USING MUSIC CODES
  447.                      -------------------------------
  448.  
  449.           ESC[MF <music notes and commands)> (music note)
  450.           (MB may be used in place of MF)
  451.        
  452.           Example:  ESC[MF CDEC CDEC EFG (music note)
  453.        
  454.        MF will play the music in the foreground, or in other words will
  455.        stop displaying temporarily until the music string is played
  456.        completely.
  457.        
  458.        MB will place the music string into a buffer, allowing the
  459.        program to execute while the music string is playing in the
  460.        background.  
  461.  
  462.        The number of notes that can be played in the background at 
  463.        one time varies according to the particular machine.  Maximum 
  464.        number of notes that can be played in the background at one 
  465.        time is 32.  
  466.  
  467.        When there are more notes to be played than the buffer will hold, 
  468.        the display will temporarily pause until the remainder of the 
  469.        music string is processed.
  470.        
  471.        More than 1 MB statement in the music string will cause the
  472.        music to be played sequentially (NOT simultaneously.)  In other
  473.        words, you cannot play 2 or 3 strings of music simultaneously.
  474.        
  475.        If a carraige return (CR-LF) is needed within the music string,
  476.        ANSIPLAY will ignore it and just continue playing.  This feature
  477.        was developed so that user's could use L-O-N-G strings of music
  478.        without interruption.
  479.        
  480.        A breakdown of MUSIC CODES available are listed in the file
  481.        MUSICODE.TXT. (refer to section on "Printing the Manual").
  482.        You may also consult your DOS user's manual under the section
  483.        on BASIC's "PLAY" statement.
  484.        
  485.        See the demonstration ANSI files included with this package
  486.        for some examples of how MUSIC CODES may be used.
  487.        
  488.        
  489.                -----------------------------------------------                  
  490.  
  491.                  USING SOUND CODES (IN PLACE OF MUSIC CODES)
  492.                -----------------------------------------------
  493.  
  494.        In place of music codes, you may use numeric values for FREQENCY,
  495.        DURATION, CYCLES, DELAY and VARIATION to create sounds that are
  496.        not available with musical code syntax.  The music string would
  497.        look like this:
  498.        
  499.          ESC[MF <FREQ; DURA; CYCLES; DELAY; VARI> (music note)
  500.  
  501.          Example:  ESC[MF 100;5;5;10;-5 (music note)
  502.        
  503.  
  504.                                    -8-
  505.  
  506.  
  507.  
  508.  
  509.        The <> brackets are not to be typed.  They are only there for
  510.        display purposes to you can see where the <SOUND CODES> are to be
  511.        placed.
  512.        
  513.        Since SOUND CODES are processed differently from MUSIC CODES,
  514.        SOUND will always be played in foreground regardless of "MF"
  515.        or "MB" specification.
  516.        
  517.        SOUND CODE Parameters must be separated by semicolons.
  518.        
  519.        Minimum/Maximum values and descriptions are as follows:
  520.        
  521.              FREQUENCY          :  a numeric value from 37 to 32,767
  522.                 Frequency is the desired frequency in hertz.
  523.                 This allows more control over the pitch of the
  524.                 tone than what is available with music codes.
  525.        
  526.              DURATION           :  an numberic value from 0 to 65,535
  527.                 Duration is how long the tone should play, measured
  528.                 in clock ticks. There are 18.2 clock ticks per second
  529.                 regardless of CPU speed.
  530.        
  531.              CYCLES (optional)  :  an integer from 0 to 9,999
  532.                 Cycles is the number of times to repeat the    
  533.                 frequency/duration.
  534.        
  535.              DELAY  (optional)  :  an integer from 0 to 999,999,999
  536.                 Delay is the length of pause between cycles.
  537.                 ANSIPLAY will count from 0 to DELAY before proceeding.
  538.  
  539.                 The DELAY time lapse will vary among computer systems.
  540.                 (My XT NEC V20 averages 723 counts per second)
  541.  
  542.                 If the [ENTER] key is hit during execution of a DELAY,
  543.                 the delay will be ended.
  544.  
  545.              VARIATION (optional):  an numeric value from -9,999 to 9,999
  546.                 Variation will change the FREQUENCY each time the tone
  547.                 is repeated using the CYCLES variable.  FREQUENCY will
  548.                 use it's current value, add the VARIATION value to 
  549.                 itself (per cycle) to get a new FREQUENCY, then play
  550.                 the new FREQUENCY.
  551.  
  552.                 A negative value used for VARIATION will make the
  553.                 FREQUENCY decrease; a positive value will make the
  554.                 FREQUENCY increase.  If the new FREQUENCY is too low
  555.                 or too high, exceeding its playable limits (minimum of
  556.                 37 to maximum 32,767) then the VARIATION value will be
  557.                 changed to reverse itself (from positive to negative,
  558.                 or from negative to positive).
  559.  
  560.                 A "*" wildcard may be used in place of a value, which
  561.                 will make the play function select a value at random
  562.                 between -999 and 999.
  563.  
  564.        Any non-integer numbers used for CYCLES or DELAY will be
  565.        converted to integers automatically.
  566.  
  567.                                       -9-
  568.  
  569.  
  570.  
  571.  
  572.        SOUND CODES are interpreted and executed as they are read,
  573.        therefore requiring them to be played in the foreground.
  574.  
  575.        The interpretation process is basically structured like this:
  576.  
  577.         :START_OF_CYCLE
  578.          Play Frequency/Duration
  579.          Add DELAY if applicable
  580.          Change Frequency if VARIATION is used
  581.          Go to :START_OF_CYCLE (Loop for number of CYCLES specified)
  582.  
  583.        See the demonstration ANSI files included with this package
  584.        for some examples of how SOUND CODES may be used.
  585.  
  586.  
  587.        TUTORIAL FOR MUSIC STRINGS
  588.        -------------------------
  589.        Now that you are somewhat familiar with music code and sound
  590.        codes...you can see a more detailed explaination of some
  591.        of the more advanced way in which these codes can be used
  592.        by typing  TUTOR  at the DOS prompt.  This will ansiplay the
  593.        file TUTOR.ANS which will give some examples and define how
  594.        they are used.  Then it will bring you into ANSIAUTO to display
  595.        the demonstration ANSI files which are included with the program
  596.        package.
  597.  
  598.        
  599.        MAKING THE MUSIC STRINGS INVISIBLE
  600.        ----------------------------------
  601.        Since the music strings are interpreted by ANSIPLAY while the
  602.        file is being read, the music string text is not displayed to
  603.        the screen.  However, if you also wish to not display the strings
  604.        while using DOS's TYPE command to view the file, this may be done
  605.        by adding a few extra ANSI escape command sequences.
  606.  
  607.        Before the music code, add:
  608.        ---------------------------
  609.          ESC[0m ESC[s ESC[?;1H ESC[8m
  610.          (text is upper/lower-case sensitive)
  611.  
  612.          Spaces should not be typed...they are only here to make the
  613.          codes easier to read.
  614.  
  615.          Here is the breakdown:
  616.  
  617.          ESC[0m    Turns all attributes off.  If the display is in
  618.                    high intensity mode, this is required.
  619.  
  620.          ESC[s     Store the current cursor position.
  621.  
  622.          ESC[?;1H  Wherein ? is the current row.  Any row from 1-24 may
  623.                    be used, however if the cursor has to move all the
  624.                    way across the display, it may cause blinking.
  625.  
  626.                    1 sets the cursor at column 1.  Even though the text
  627.                    will be invisible, it will still be printed to
  628.  
  629.  
  630.                                       -10-
  631.  
  632.  
  633.  
  634.  
  635.                    screen.  If the end of screen is reached, the text
  636.                    will be wrapped around to the next row.  If you are
  637.                    using long music strings and it is causing the
  638.                    display to eject upward, you may try using shorter
  639.                    strings of about 75 characters or so at a time.
  640.  
  641.          ESC[8m    This will make the music string invisible when it is
  642.                 written to screen. Otherwise it will be written to
  643.                 screen in the current color attributes.
  644.  
  645.  
  646.        After the music code, add:
  647.        --------------------------
  648.          ESC[u ESC[0m
  649.          (text is upper/lower-case sensitive)
  650.  
  651.          Spaces should not be typed...they are only here to make the
  652.          codes easier to read.
  653.  
  654.          Here is the breakdown:
  655.  
  656.          ESC[u     Moves the cursor back to the location it was at
  657.                    when the last ESC[s command (store cursor) was used.
  658.  
  659.          ESC[0m    Returns to normal mode.  Turns off invisible
  660.                    attribute.
  661.  
  662.        The entire set of commands would look like this...
  663.  
  664.        ESC[0m ESC[s ESC[?;1H ESC[8m ESC[MF<music string>
  665.                                                 (music note) ESC[u ESC[0m
  666.  
  667.        Remember, making the music codes invisible is only necessary if 
  668.        you wish to use an ANSI display program other than ANSIPLAY.
  669.  
  670.  
  671.        USING THE ESCAPE CHARACTER DURING EDITING
  672.        -----------------------------------------
  673.        If you use DOS's edlin command for text editing, you will not be
  674.        able to enter an ESCape character (ASCII character CHR$(27)),
  675.        since hitting ESCape will type a \ character instead.  
  676.  
  677.        Most word/text editing programs will allow you to enter an ESCape
  678.        character by holding down the [ALT] key, then simultaneously
  679.        entering the number 27.  Usually this is displayed as a left
  680.        arrow character. (Music note would be [ALT] + 14).
  681.        
  682.        If you use a commercial word processor such as Word Perfect or
  683.        Word Star, the text must be saved as plain ASCII text format.  
  684.        
  685.        Otherwise there will be extra printer codes embedded into the
  686.        file which will mess up the whole thing.
  687.        
  688.        If you do not have a text editor, I recommend a shareware
  689.        program called QEDIT.  It's very powerful and does allow extended
  690.        ASCII characters.
  691.  
  692.  
  693.                                       -11-
  694.  
  695.  
  696.  
  697.  
  698.        The (music note) character may be entered the same way as the
  699.        ESCape character by using the decimal 14 instead of 27.
  700.  
  701.  
  702.        GETTING FAMILIAR WITH ANSIPLAY
  703.        ------------------------------
  704.        To see the demonstration files, at the DOS prompt type DEMO.
  705.        To get familiar with the program and included files, type GO.
  706.        
  707.        
  708.        RUNNING ANSIPLAY
  709.        ----------------
  710.        Syntax from the DOS prompt is as follows:
  711.        
  712.                  ANSIPLAY [FileName DelaySeconds] [/Option Flags]
  713.                                                                         
  714.        Parameters are:
  715.        [Filename]
  716.            is the drive\path\filename of the ansi file you wish to 
  717.            display/play.  Wildcard characters * and ? are not supported.
  718.  
  719.            If no filetype is given, then ANSIPLAY will append the
  720.            filetype of ".ANS" to the filename.
  721.  
  722.            If no drive\path is given, then ANSIPLAY will search the
  723.            currently logged (default) drive\path for the ANSI file.
  724.                                                                         
  725.        [ DelaySeconds]
  726.            is the number of seconds to delay program execution.  This
  727.            option is used for ANSIAUTO (automatic slide show present-
  728.            ation of ansi files).  If this option is used, the number of
  729.            seconds must be preceeded with a space ( ).
  730.        
  731.            While using ANSIAUTO, there will be a pause of DelaySeconds
  732.            between displays of ANSI files.
  733.        
  734.        [Options] are as follows:
  735.        <Multiple option flags may be used in any order>     
  736.        
  737.            /C  (ClearScreen) clears the screen before displaying the
  738.                ANSI file.
  739.        
  740.            /Q  (Quiet) Disables the music during display of the ANSI
  741.                file.
  742.        
  743.            /D  (Delete) Prompts user if ANSI file is to be deleted after
  744.                display.
  745.                     
  746.                This option was designed for those who use off-line mail
  747.                readers.  The mail read can save the message to a temp-  
  748.                orary file, and then Shell out to DOS to ANSIPLAY it. 
  749.                Then the /D option will allow you to delete the temporary
  750.                file.
  751.        
  752.        If you want the freedom to use the ANSIPLAY command while logged
  753.        onto any drive\directory, just add the name of the directory in
  754.  
  755.  
  756.                                       -12-
  757.  
  758.  
  759.  
  760.  
  761.        which ANSIPLAY exists to DOS's search PATH.  (Consult your DOS
  762.        user's manual for more information on how to do this).
  763.        
  764.        Once the file is in process of displaying, hitting ESC will NOT
  765.        allow you to exit the display until to display is completely 
  766.        processed.  The purpose of this is two-fold.  First, to allow a
  767.        bulk read/write of the file thus making the fastest display
  768.        possible.  Second, to avoid stopping the display when the screen
  769.        may be set in the middle of some strange color combination.
  770.        (However, ANSIAUTO will exit after the display/play is completed.
  771.  
  772.  
  773.        REINITIALIZING THE DISPLAY SCREEN (ANSIPLAY.CLS)
  774.        ------------------------------------------------
  775.        Once ANSIPLAY has completed displaying/playing the ANSI file,
  776.        there may have been several changes made to the screen display
  777.        such as screen mode, color attributes, etc.
  778.  
  779.        To reinitialize the display to your desired settings, simply
  780.        create a file called ANSIPLAY.CLS containing the desired
  781.        ANSI escape command sequences. ("CLS" for "Closing Screen")
  782.  
  783.        This file is optional.  If ANSIPLAY.CLS file does not exist,
  784.        then the only reset code which is automatically executed is 
  785.        ESC[0m which turns all attributes off and returns to normal 
  786.        display.
  787.  
  788.        If the file ANSIPLAY.CLS does exist, the ESC[0m will be 
  789.        ignored regardless of whether the file contains escape command
  790.        sequences or is empty.
  791.  
  792.        An example of how this file might be used is to:
  793.  
  794.        ESC[=3l          'reset the screen mode to 80 x 25 color
  795.        ESC[0m           'all attributes off, normal display
  796.        ESC[44;1;33m     'set colors: bright yellow on blue background
  797.        ESC[2J           'clear screen
  798.  
  799.        thus the contents of ANSIPLAY.CLS would actually be:
  800.  
  801.        ESC[=3lESC[0mESC[44;1;33mESC[2J
  802.  
  803.        (ESC resembles the actual ESCape character which must be used).
  804.  
  805.        Refer to the files ANSIPLAY.DOC and ANSICODE.TXT for more details
  806.        on the actual ANSI codes to use.
  807.  
  808.        It is recommended that no other text, music codes, etc. are 
  809.        included in this file, since they will be displayed after 
  810.        each ANSI file display.
  811.  
  812.  
  813.        REMOVING MUSIC STRINGS (MUSCSTRP.EXE)
  814.        -------------------------------------
  815.        If wish to remove all existing music strings from the ANSI file,
  816.        at the DOS prompt type   MUSCSTRP FILENAME.ANS
  817.  
  818.  
  819.                                       -13-
  820.  
  821.  
  822.  
  823.  
  824.        MUSCSTRP (Music Strip) will create a new file using the same
  825.        filename, but with the file extension of .NEW
  826.  
  827.        The MUSCSTRP program must be able to locate ANSIPLAY.EXE either
  828.        in the current directory, or in DOS's PATH setting.
  829.  
  830.  
  831.        HOW ANSIAUTO WORKS
  832.        ------------------
  833.        ANSIAUTO will read the contents of the data file you specify
  834.        on the command line.
  835.        
  836.        (See "RUNNING ANSIAUTO" regarding DataFile Structure)
  837.        Once the data is loaded into memory, ANSIAUTO will shell to DOS
  838.        and execute the ANSIPLAY command (with any optional parameters
  839.        which are specified) per file.  
  840.  
  841.        Each file will be displayed (played) in sequence.  If a 
  842.        DelaySeconds parameter was specified, the program will pause 
  843.        after the file is displayed for the set number of seconds, and 
  844.        then continue onto the next file.
  845.        
  846.        Once all the files have been displayed, ANSIAUTO will start
  847.        the sequence over again (and again...).
  848.        
  849.  
  850.        RUNNING ANSIAUTO 
  851.        ----------------
  852.        Syntax is as follows:  ANSIAUTO DRIVE\PATH\FILENAME.DAT
  853.        If no filetype is given, then ANSIAUTO will append the
  854.        filetype of ".DAT" to the filename.
  855.  
  856.        To EXIT ANSIAUTO, hit the ESCape key on the keyboard.  ANSIPLAY
  857.        will not respond until the file display/play is completed.  At
  858.        that time, the program will exit and return to DOS.
  859.  
  860.        Data file structure
  861.        -------------------
  862.        Each line of the file contains the same specifications as would
  863.        normally be entered on the DOS command line when executing
  864.        ANSIPLAY.  An example datafile might look like this:
  865.        
  866.                  C:\ANSI\MERMAID.ANS,3 /C      
  867.                  D:\DRAW\CASTLE.ANS,2 /C       
  868.                  C:\UTILS\FIREMAN.ANS /C /Q    
  869.                     .      .      .           
  870.                     .      .      .           
  871.                    etc.   etc.   etc.         
  872.        
  873.        As mentioned before, unregistered versions of the program will
  874.        display the "ANSIPLAY [Unregistered Version] Copyright 1991, J.
  875.        Ibarra" message after each file is display/played.  Registered
  876.        versions do not have this message.
  877.        
  878.        Maximum number of files that can be used for slideshow is 30.
  879.        If the data file contains more than 30 filenames, they will be
  880.        ignored. If 30 is not enough, let me know and I can increase it.
  881.        
  882.                                      -14-
  883.  
  884.  
  885.  
  886.  
  887.        USING PLAY.EXE (Music String Player/Editor)
  888.        -------------------------------------------
  889.        Syntax is: PLAY    <* MUSIC STRING> (Plays Music Codes or Sound Codes)
  890.               or: PLAY /E <* MUSIC STRING> (To activate music string editor)
  891.  
  892.        If you want to experiment with music/sound codes, PLAY.EXE is
  893.        the quickest way to do it.  PLAY.EXE has two ways of working...
  894.  
  895.                1: It will allow you to play music codes directly from
  896.                   the DOS prompt.
  897.                2: It will allow you to edit, then play, the re-edit, etc.
  898.                   music strings, and write to file.
  899.  
  900.        * MUSIC STRING is a little different with PLAY.EXE:
  901.             The prefix of ESC[ and suffix of (music note) are not
  902.             required on the DOS command line.
  903.  
  904.             If MF or MB is not specified, default is set for MF.
  905.  
  906.        See sections on "Using Music Codes" and "Using Sound Codes"
  907.        for more information on Music String Syntax.
  908.  
  909.           --- TO PLAY THE MUSIC CODES DIRECTLY FROM THE DOS PROMPT ---
  910.  
  911.        Playing a music/sound codes directly from the DOS prompt is
  912.        easy.  An example would be, to hear the beginning of Frere Jacques
  913.        (ESC[MF O2 CDEC CDEC EFG.... EFG....(music note)), at the DOS
  914.        prompt, you would type the command line:
  915.                   PLAY O2 CDEC CDEC EFG.... EFG....
  916.  
  917.        or to hear a bomb dropping, you might type:
  918.                        PLAY 900;1;120;;-5
  919.  
  920.        Note that the > and < characters cannot be used from the DOS
  921.        prompt because DOS will interprete these as piping character.
  922.        Optionally you can set the octave with On wherein n is the
  923.        value (0-6) of the Octave you desire.   Default octave is 4.
  924.  
  925.        Before playing the music string, PLAY.EXE will check for any
  926.        letters that are NOT valid music code characters.  If an
  927.        invalid letter is found, you will receive the error message
  928.        "Illegal play string".  Play will then take you directly into
  929.        the music string editor.  If the string has a length greater
  930.        than 73 characters, the string will be trimmed to 73 characters
  931.        so that it will fit into the editor.  If this happens, a message
  932.        will appear to notify you.
  933.  
  934.  
  935.                     --- TO USE THE MUSIC STRING EDITOR ---
  936.  
  937.        The music string editor is the more useful feature of PLAY.EXE.
  938.        It will allow you to play Music Codes or Sound Codes, then
  939.        edit them on the screen, replay them, etc.
  940.  
  941.        Once you have the music/sound codes exactly as you want them, you
  942.        can then save them to file.
  943.  
  944.  
  945.                                       -15-
  946.  
  947.  
  948.  
  949.  
  950.        The /E option will activate the editor.  At the DOS prompt, you
  951.        may optionally enter the music string you wish to edit .
  952.  
  953.        Music String Editor commands are as follows:
  954.  
  955.                          Move Cursor: LEFT/RIGHT arrow keys
  956.        Delete Character above cursor: DEL key
  957.         Move cursor to 1st character: HOME key
  958.         Move cursor to end character: END key
  959.            Erase entire music string: CTRL+Backspace
  960.           Write music string to file: CTRL+W
  961.        Toggle prefix of "MF" or "MB": TAB key
  962.                        Exit PLAY.EXE: ESC key
  963.  
  964.        If the music string contains characters which cannot be
  965.        played, you will receive an error message "Illegal play string".
  966.        It will then return to the editor so you can make your changes.
  967.  
  968.        The write option will write the music string to a file named
  969.        "PLAY.MUS".  The ESC[MF prefix and (music note) character suffix
  970.        will automatically be added.
  971.  
  972.        If there are pre-existing music strings, the new music string
  973.        will be appended (not overwritten).
  974.  
  975.  
  976.        COMMON PROBLEMS WITH MUSIC STRINGS
  977.        ----------------------------------
  978.        Problem:
  979.            I keep getting the error message "Illegal string in
  980.            PLAY parameters".
  981.  
  982.        Solution:
  983.            Consult the documentation to be sure the values used
  984.            in your MUSIC CODEs and/or SOUND CODEs are valid.  If
  985.            the problem still persists, and the parameters are indeed
  986.            valid, contact the programmer.
  987.  
  988.        Another Solution:
  989.            It's possible that the letter O was used in place of the
  990.            number 0 (zero), or visa-versa in the MUSIC CODE's and/or
  991.            SOUND CODE's.  It's very easy to mix these up.
  992.  
  993.        Another Solution:
  994.            It's possible that the music note characters, [CHR$(14)] was
  995.            not included in the music string.  Consequently, the program 
  996.            will read the entire file until it encounters the music note.
  997.            If no music note is found, it will append a music note at the
  998.            end and try to play the string.
  999.            
  1000.  
  1001.        Problem:
  1002.            Why do I get an "Illegal play string" error?
  1003.  
  1004.        Reason:
  1005.            Something in the play string is not valid.  This could be
  1006.            caused by using a note that does not exist such as
  1007.  
  1008.                                       -16-
  1009.  
  1010.  
  1011.  
  1012.  
  1013.            B#, H, etc.; or using a value which is not within set limits
  1014.            for octave, tempo, etc. such as O7; or using an invalid
  1015.            character which is not a music code/sound code character.
  1016.  
  1017.        Problem:
  1018.            My text editor will not allow me to enter the ESCape char-
  1019.            acter (or music string character) into the ANSI file.
  1020.  
  1021.        Solution:
  1022.            Some editors (though few) do not have this ability.  Refer
  1023.            to the section "Using the ESC character during editing".
  1024.            If this still doesn't help...if your editor has a cut-and-paste
  1025.            feature, you might try duplicating the ESC character this way.
  1026.            If all else fails, try another editor.  Shareware has
  1027.            a fantastic and very intelligent text editor called "QEDIT".
  1028.  
  1029.  
  1030.        COMMON PROBLEMS WITH USING ANSIPLAY
  1031.        -----------------------------------
  1032.        Problem: 
  1033.            Lots of strange characters (garbage) on the screen.
  1034.  
  1035.        Solution:
  1036.            Be sure that the ANSI.SYS driver is installed into your
  1037.            CONFIG.SYS file  (See section on "About ANSI.SYS").
  1038.  
  1039.  
  1040.        Problem:
  1041.            The program ignores my efforts to escape during the
  1042.            displaying of my ANSI file.
  1043.  
  1044.        Reason:
  1045.            ANSIPLAY reads and processes large portions of the ANSI file
  1046.            at a time.  The output of these portions may be as large as
  1047.            the whole display screen.  Since the printing of these portions
  1048.            cannot be interrupted, ANSIPLAY will not respond to using the
  1049.            ESCape key.
  1050.  
  1051.            ANSIAUTO, however, will respond AFTER the file display is
  1052.            completed.
  1053.  
  1054.  
  1055.        Problem:
  1056.            When I use "MB" (Music Background) in the music string, there
  1057.            isn't much difference from "MF".
  1058.  
  1059.        Reason:
  1060.            There are several things happening here...For one, ANSIPLAY
  1061.            must pull out the music strings from the bulk of the file
  1062.            which is being read at one time.  The strings must then be
  1063.            processed to produce music/sound/pauses.
  1064.  
  1065.            Secondly, the computer's music buffer will only retain 32
  1066.            characters at a time.  If the music string is larger than 32
  1067.            characters or if the music buffer is full when the new
  1068.            music string is to be loaded into it, the program has to wait
  1069.  
  1070.  
  1071.                                       -17-
  1072.  
  1073.  
  1074.  
  1075.  
  1076.            for the buffer to process the characters which have already been
  1077.            loaded to free up more space in the buffer for the remaining
  1078.            characters to be loaded.
  1079.  
  1080.            Thirdly, Sound codes that have parameters for CYCLES and/or
  1081.            DELAY are processed counting from 0 to CYCLES (or 0 to DELAY).
  1082.            The counting procedure is not loaded into the background buffer.
  1083.            When the frequency/duration is played, however, it is then
  1084.            placed into the buffer.  The counting feature is extremely
  1085.            fast, but if the set values for these parameters are high, it
  1086.            will slow up the display process slightly.
  1087.  
  1088.  
  1089.        Problem:
  1090.            My file was fine until I edited it...now I get a bunch of 
  1091.            garbage when displaying it.
  1092.  
  1093.        Solution:
  1094.            Some word processing programs will add extra printer codes to
  1095.            the file when you "save" the file.  Most programs that do this
  1096.            also have an option to "save" as "ASCII" or "DOS TEXT".  If so,
  1097.            re-save the file using this option.  This will save the contents
  1098.            of the file without adding any other embedded program codes.
  1099.  
  1100.  
  1101.        COMMON PROBLEMS WITH USING PLAY.EXE
  1102.        -----------------------------------
  1103.        Problem:
  1104.            When I tried to write the music string to file, I keep
  1105.            getting an error..."Unable to save".
  1106.  
  1107.        Reason:
  1108.            There may be one of several causes for this:  Disk media
  1109.            format error, not enough disk space or disk write-protected
  1110.            to name a few.
  1111.  
  1112.  
  1113.        REGISTRATION OF ANSIPLAY
  1114.        ------------------------
  1115.        Users who register their copy of ANSIPLAY will receive a new
  1116.        copy of the most current version of the program and included
  1117.        utilities.  In addition, registered versions will NOT interrupt
  1118.        the ANSI display with the copyright message at the bottom of the
  1119.        screen.
  1120.        
  1121.        Registered users will automatically be notified when an updated
  1122.        version is released.  Registered users will receive a 25%
  1123.        discount on the purchase of any updated version (plus postage and
  1124.        handling).
  1125.        
  1126.        If you wish to register your copy, you may print the registration
  1127.        form by typing      COPY ORDER.FRM PRN       at the DOS prompt.
  1128.        
  1129.        Fill out the registration form and enclose required payment in
  1130.        check or money order (no cash please) and mail to:
  1131.        
  1132.  
  1133.  
  1134.                                       -18-
  1135.  
  1136.  
  1137.  
  1138.  
  1139.                        Julie M. Ibarra
  1140.                        P.O. Box 710727 
  1141.                    Santee, CA  92072-0727
  1142.        
  1143.        To print the registration form, at the DOS prompt, type:
  1144.  
  1145.                       COPY ORDER.FRM PRN
  1146.  
  1147.  
  1148.        Any comments regarding program features, documentation,
  1149.        presentation, etc. are also appreciated.
  1150.  
  1151.        Any questions, comments, correspondence may also be directed to
  1152.        the above address.
  1153.  
  1154.  
  1155.  
  1156.        --end of documentation--
  1157.        
  1158.                
  1159.